﻿using System;
using System.Collections.Generic;
using System.Text;
using System.BusinessObjects.Data;
using Blazing.BusinessObjects.Cms;

namespace Blazing.BusinessObjects.Widgets
{
    [Serializable]
    public class Widget : DataObject<Widget>
    {
        public virtual int ID
        {
            get { return GetValue<int>("ID"); }
            set
            {
                BeginEdit();
                SetValue("ID", value);
            }
        }

        public virtual string Name
        {
            get { return GetValue<string>("Name"); }
            set
            {
                BeginEdit();
                SetValue("Name", value);
            }
        }

        public virtual string Path
        {
            get { return GetValue<string>("Path"); }
            set
            {
                BeginEdit();
                SetValue("Path", value);
            }
        }

        public virtual Site Site { get; set; }

        public virtual WidgetRegion Region { get; set; }

        public virtual DateTime RowStamp
        {
            get { return GetValue<DateTime>("RowStamp"); }
            set
            {
                BeginEdit();
                SetValue("RowStamp", value);
            }
        }
    }
}
